<template>
  <div class="newcarousel">
    <a-carousel dot-position="left" :autoplay="true" ref="carousel">
      <div v-for="item  in 10" :key="item" class="artTitle"><a @click="showLog(item)"><h3>苏联空军受到了发生的几率发生的几率附件{{item}}</h3></a></div>
    </a-carousel>
  </div>
</template>
<script>
export default {
  data() {
    return {
      height:'600px'
    };
  },
  mounted()
  {
      
      setTimeout(() => {
          var list = this.$refs.carousel.$el.getElementsByClassName('slick-list')[0];
          list.style.height=this.height;  
          var dots = this.$refs.carousel.$el.getElementsByClassName('slick-dots')[0];
          dots.style.display='none';  
        
      }, 500);
  },
  methods:{
      showLog(index){
          console.log(index);
      }
  }
};
</script>
<style scoped>
/* For demo */
.ant-carousel >>> .slick-slide {
  text-align: center;
  height: 60px;
  line-height: 60px;
  background: #ffffff;
  overflow: hidden;
}
.ant-carousel >>> .slick-slide h3 {
  color: #666666;
}
.newcarousel .artTitle{
    text-align: left;
    color: #666666;
    pointer-events: auto !important;
}
</style>
